<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/8
 * Time: 10:21
 */
header("Content-type:text/html;charset=utf-8");
echo '<table border="1">';
//循环九九乘法表的层数
for($i=1; $i<=10;++$i){
    //以表格形式输出乘法口诀
    echo "<tr>";
    //循环每层中单元格的个数
    for($j=1;$j<=$i;++$j){
        echo "<td> {$j}*{$j}=" .$i*$j."</td>";
    }
    echo "</tr>";
}
echo "</table>";